package com.sikao.app.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/7/15.
 */
public class EntrustListBean {


	/**
	 * status : 1
	 * msg : 成功找到相应记录
	 * res : {"count":"8","thisPage":"1","allPage":1,"list":[{"id":"16","user_id":"165","name":"cucjcjfu","cont":"fufufufufjf","profile_pic":"53","phone":"15764240017","type":"出售","status":"1","is_del":"0","add_time":"1475979720","user_name":"李全春","profile_pic_url":[{"id":"53","url":"/Uploads/Picture/2016-10-09/57f99f582b032.png"}]},{"id":"12","user_id":"165","name":"1111111111","cont":"1111111111","profile_pic":"35","phone":"13256818918","type":"出售","status":"1","is_del":"0","add_time":"1475919003","user_name":"李全春","profile_pic_url":[{"id":"35","url":"/Uploads/Picture/2016-10-08/57f86aff86c59.png"}]}]}
	 */

	private String status;
	private String msg;
	/**
	 * count : 8
	 * thisPage : 1
	 * allPage : 1
	 * list : [{"id":"16","user_id":"165","name":"cucjcjfu","cont":"fufufufufjf","profile_pic":"53","phone":"15764240017","type":"出售","status":"1","is_del":"0","add_time":"1475979720","user_name":"李全春","profile_pic_url":[{"id":"53","url":"/Uploads/Picture/2016-10-09/57f99f582b032.png"}]},{"id":"12","user_id":"165","name":"1111111111","cont":"1111111111","profile_pic":"35","phone":"13256818918","type":"出售","status":"1","is_del":"0","add_time":"1475919003","user_name":"李全春","profile_pic_url":[{"id":"35","url":"/Uploads/Picture/2016-10-08/57f86aff86c59.png"}]}]
	 */

	private ResBean res;

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public ResBean getRes() {
		return res;
	}

	public void setRes(ResBean res) {
		this.res = res;
	}

	public static class ResBean {
		private String count;
		private String thisPage;
		private int allPage;
		/**
		 * id : 16
		 * user_id : 165
		 * name : cucjcjfu
		 * cont : fufufufufjf
		 * profile_pic : 53
		 * phone : 15764240017
		 * type : 出售
		 * status : 1
		 * is_del : 0
		 * add_time : 1475979720
		 * user_name : 李全春
		 * profile_pic_url : [{"id":"53","url":"/Uploads/Picture/2016-10-09/57f99f582b032.png"}]
		 */

		private List<ListBean> list;

		public String getCount() {
			return count;
		}

		public void setCount(String count) {
			this.count = count;
		}

		public String getThisPage() {
			return thisPage;
		}

		public void setThisPage(String thisPage) {
			this.thisPage = thisPage;
		}

		public int getAllPage() {
			return allPage;
		}

		public void setAllPage(int allPage) {
			this.allPage = allPage;
		}

		public List<ListBean> getList() {
			return list;
		}

		public void setList(List<ListBean> list) {
			this.list = list;
		}

		public static class ListBean implements Parcelable {
			private String id;
			private String user_id;
			private String name;
			private String cont;
			private String profile_pic;
			private String phone;
			private String type;
			private String status;
			private String is_del;
			private String add_time;
			private String user_name;
			/**
			 * id : 53
			 * url : /Uploads/Picture/2016-10-09/57f99f582b032.png
			 */

			private List<ProfilePicUrlBean> profile_pic_url;

			public String getId() {
				return id;
			}

			public void setId(String id) {
				this.id = id;
			}

			public String getUser_id() {
				return user_id;
			}

			public void setUser_id(String user_id) {
				this.user_id = user_id;
			}

			public String getName() {
				return name;
			}

			public void setName(String name) {
				this.name = name;
			}

			public String getCont() {
				return cont;
			}

			public void setCont(String cont) {
				this.cont = cont;
			}

			public String getProfile_pic() {
				return profile_pic;
			}

			public void setProfile_pic(String profile_pic) {
				this.profile_pic = profile_pic;
			}

			public String getPhone() {
				return phone;
			}

			public void setPhone(String phone) {
				this.phone = phone;
			}

			public String getType() {
				return type;
			}

			public void setType(String type) {
				this.type = type;
			}

			public String getStatus() {
				return status;
			}

			public void setStatus(String status) {
				this.status = status;
			}

			public String getIs_del() {
				return is_del;
			}

			public void setIs_del(String is_del) {
				this.is_del = is_del;
			}

			public String getAdd_time() {
				return add_time;
			}

			public void setAdd_time(String add_time) {
				this.add_time = add_time;
			}

			public String getUser_name() {
				return user_name;
			}

			public void setUser_name(String user_name) {
				this.user_name = user_name;
			}

			public List<ProfilePicUrlBean> getProfile_pic_url() {
				return profile_pic_url;
			}

			public void setProfile_pic_url(List<ProfilePicUrlBean> profile_pic_url) {
				this.profile_pic_url = profile_pic_url;
			}

			public static class ProfilePicUrlBean implements Parcelable {
				private String id;
				private String url;

				public String getId() {
					return id;
				}

				public void setId(String id) {
					this.id = id;
				}

				public String getUrl() {
					return url;
				}

				public void setUrl(String url) {
					this.url = url;
				}

				@Override
				public int describeContents() {
					return 0;
				}

				@Override
				public void writeToParcel(Parcel dest, int flags) {
					dest.writeString(this.id);
					dest.writeString(this.url);
				}

				public ProfilePicUrlBean() {
				}

				protected ProfilePicUrlBean(Parcel in) {
					this.id = in.readString();
					this.url = in.readString();
				}

				public static final Creator<ProfilePicUrlBean> CREATOR = new Creator<ProfilePicUrlBean>() {
					@Override
					public ProfilePicUrlBean createFromParcel(Parcel source) {
						return new ProfilePicUrlBean(source);
					}

					@Override
					public ProfilePicUrlBean[] newArray(int size) {
						return new ProfilePicUrlBean[size];
					}
				};
			}

			@Override
			public int describeContents() {
				return 0;
			}

			@Override
			public void writeToParcel(Parcel dest, int flags) {
				dest.writeString(this.id);
				dest.writeString(this.user_id);
				dest.writeString(this.name);
				dest.writeString(this.cont);
				dest.writeString(this.profile_pic);
				dest.writeString(this.phone);
				dest.writeString(this.type);
				dest.writeString(this.status);
				dest.writeString(this.is_del);
				dest.writeString(this.add_time);
				dest.writeString(this.user_name);
				dest.writeList(this.profile_pic_url);
			}

			public ListBean() {
			}

			protected ListBean(Parcel in) {
				this.id = in.readString();
				this.user_id = in.readString();
				this.name = in.readString();
				this.cont = in.readString();
				this.profile_pic = in.readString();
				this.phone = in.readString();
				this.type = in.readString();
				this.status = in.readString();
				this.is_del = in.readString();
				this.add_time = in.readString();
				this.user_name = in.readString();
				this.profile_pic_url = new ArrayList<ProfilePicUrlBean>();
				in.readList(this.profile_pic_url, ProfilePicUrlBean.class.getClassLoader());
			}

			public static final Parcelable.Creator<ListBean> CREATOR = new Parcelable.Creator<ListBean>() {
				@Override
				public ListBean createFromParcel(Parcel source) {
					return new ListBean(source);
				}

				@Override
				public ListBean[] newArray(int size) {
					return new ListBean[size];
				}
			};
		}
	}
}
